﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLHShenQingXX_FH.ascx.cs" Inherits="Web.Controls.LAIHAN.UCLHShenQingXX_FH" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<script type="text/javascript">
    //输入用户号
    function SelectYongHuH() {
        if (event.keyCode == 13) {
            setTimeout(function () {}, 0);
            event.preventDefault ? event.preventDefault() : (event.returnValue = false);
            if (txtYYongHuH.GetText() == "") {
                alert("用户号不能为空");
                return;
            }
            ASPxCallback1.PerformCallback("yonghuh");
        }
    }
    //分户号变更事件 计算合同合
    function YHH_LostFocus(s) {
        if (s.GetText() == "" || s.GetText().length != 7) {
            txtHeTongH.SetText("");
        }
        else {
            ASPxCallback1.PerformCallback("hth");
        }
    }
    function OnkeyNext(obj) {
        if (event.keyCode == 13) {
            obj.Focus();
        }
    }
    //单击分户列表加载数据
    function rowClick() {
        //if (gvList.GetFocusedRowIndex() != -1) {
        //    ASPxCallback1.PerformCallback("setinfo");
        //}
    }
    //分户计划重新合计
    function FH1Change(s) {
        GetInt(s);
        if (cbFHBLF.GetChecked()) {
            s.SetText(s.GetText() * 100);
        }
        var arr = [txtFenHu1JH1, txtFenHu1JH2, txtFenHu1JH3, txtFenHu1JH4, txtFenHu1JH5, txtFenHu1JH6, txtFenHu1JH7, txtFenHu1JH8, txtFenHu1JH9, txtFenHu1JH10, txtFenHu1JH11, txtFenHu1JH12];
        GetSum(arr, txtFenHu1JH13);
        SumFenHu();
    }
    //全年相同
    function FHAllSame() {
        var arr = [txtFenHu1JH1, txtFenHu1JH2, txtFenHu1JH3, txtFenHu1JH4, txtFenHu1JH5, txtFenHu1JH6, txtFenHu1JH7, txtFenHu1JH8, txtFenHu1JH9, txtFenHu1JH10, txtFenHu1JH11, txtFenHu1JH12];
        var fcName = GetFocusC();
        if (fcName != null && fcName.indexOf("FenHu1") != -1) {
            SetSame(arr);
            GetSum(arr, txtFenHu1JH13);
        }
        SumFenHu();
    }
    function SumFenHu() {
        var sum1 = 0;//1月合计
        sum1 = sum1 + Number(txtFenHu1JH1.GetText() == "" ? 0 : txtFenHu1JH1.GetText());
        sum1 = sum1 + Number(txtQTHeJiJH1.GetText() == "" ? 0 : txtQTHeJiJH1.GetText());
        txtHeJiJH1.SetText(sum1);

        var sum2 = 0;//2月合计
        sum2 = sum2 + Number(txtFenHu1JH2.GetText() == "" ? 0 : txtFenHu1JH2.GetText());
        sum2 = sum2 + Number(txtQTHeJiJH2.GetText() == "" ? 0 : txtQTHeJiJH2.GetText());
        txtHeJiJH2.SetText(sum2);

        var sum3 = 0;//3月合计
        sum3 = sum3 + Number(txtFenHu1JH3.GetText() == "" ? 0 : txtFenHu1JH3.GetText());
        sum3 = sum3 + Number(txtQTHeJiJH3.GetText() == "" ? 0 : txtQTHeJiJH3.GetText());
        txtHeJiJH3.SetText(sum3);

        var sum4 = 0;//4月合计
        sum4 = sum4 + Number(txtFenHu1JH4.GetText() == "" ? 0 : txtFenHu1JH4.GetText());
        sum4 = sum4 + Number(txtQTHeJiJH4.GetText() == "" ? 0 : txtQTHeJiJH4.GetText());
        txtHeJiJH4.SetText(sum4);

        var sum5 = 0;//5月合计
        sum5 = sum5 + Number(txtFenHu1JH5.GetText() == "" ? 0 : txtFenHu1JH5.GetText());
        sum5 = sum5 + Number(txtQTHeJiJH5.GetText() == "" ? 0 : txtQTHeJiJH5.GetText());
        txtHeJiJH5.SetText(sum5);

        var sum6 = 0;//6月合计
        sum6 = sum6 + Number(txtFenHu1JH6.GetText() == "" ? 0 : txtFenHu1JH6.GetText());
        sum6 = sum6 + Number(txtQTHeJiJH6.GetText() == "" ? 0 : txtQTHeJiJH6.GetText());
        txtHeJiJH6.SetText(sum6);

        var sum7 = 0;//7月合计
        sum7 = sum7 + Number(txtFenHu1JH7.GetText() == "" ? 0 : txtFenHu1JH7.GetText());
        sum7 = sum7 + Number(txtQTHeJiJH7.GetText() == "" ? 0 : txtQTHeJiJH7.GetText());
        txtHeJiJH7.SetText(sum7);

        var sum8 = 0;//8月合计
        sum8 = sum8 + Number(txtFenHu1JH8.GetText() == "" ? 0 : txtFenHu1JH8.GetText());
        sum8 = sum8 + Number(txtQTHeJiJH8.GetText() == "" ? 0 : txtQTHeJiJH8.GetText());
        txtHeJiJH8.SetText(sum8);

        var sum9 = 0;//9月合计
        sum9 = sum9 + Number(txtFenHu1JH9.GetText() == "" ? 0 : txtFenHu1JH9.GetText());
        sum9 = sum9 + Number(txtQTHeJiJH9.GetText() == "" ? 0 : txtQTHeJiJH9.GetText());
        txtHeJiJH9.SetText(sum9);

        var sum10 = 0;//10月合计
        sum10 = sum10 + Number(txtFenHu1JH10.GetText() == "" ? 0 : txtFenHu1JH10.GetText());
        sum10 = sum10 + Number(txtQTHeJiJH10.GetText() == "" ? 0 : txtQTHeJiJH10.GetText());
        txtHeJiJH10.SetText(sum10);

        var sum11 = 0;//11月合计
        sum11 = sum11 + Number(txtFenHu1JH11.GetText() == "" ? 0 : txtFenHu1JH11.GetText());
        sum11 = sum11 + Number(txtQTHeJiJH11.GetText() == "" ? 0 : txtQTHeJiJH11.GetText());
        txtHeJiJH11.SetText(sum11);

        var sum12 = 0;//12月合计
        sum12 = sum12 + Number(txtFenHu1JH12.GetText() == "" ? 0 : txtFenHu1JH12.GetText());
        sum12 = sum12 + Number(txtQTHeJiJH12.GetText() == "" ? 0 : txtQTHeJiJH12.GetText());
        txtHeJiJH12.SetText(sum12);

        var sum13 = sum1 + sum2 + sum3 + sum4 + sum5 + sum6 + sum7 + sum8 + sum9 + sum10 + sum11 + sum12;
        txtHeJiJH13.SetText(sum13);
    }
    function CallbackCommonComplete(rs) {
        //debugger;
        var arr = rs.split('|');
        var type = arr[0];
        var state = arr[1];
        var msg = arr[2];
        if (type == "yonghuh") {
            if (state == -3) {
                if (confirm(msg + ",是否继续！？")) {
                    hdCollection.Set("IsTrue", "1");
                    BtnSearch.onClick();
                }
            }
            else if (state > 0) {
                BtnSearch.onClick();
            }
            else {
                alert(msg);
                BtnClear.onClick();
            }
        }
        else if (type == "hth") {
            txtHeTongH.SetText(arr[2]);
        }
        //else if (type == "setinfo") {
        //    if (state == 0) {
        //        txtYongHuH.SetText(arr[2]);
        //        txtYongHuM.SetText(arr[3]);
        //        txtDiZhi.SetText(arr[4]);
        //        cmbJu.SetValue(arr[5]);
        //        cmbGongSi.SetValue(arr[6]);
        //        cmbXingZhengQ.SetValue(arr[7]);
        //        cmbYWY.SetValue(arr[8]);
        //        txtLianXiR.SetText(arr[9]);
        //        txtLianXiDH.SetText(arr[10]);
        //        txtLianXiBM.SetText(arr[11]);
        //        txtYouBian.SetText(arr[12]);
        //        cmbYongShuiXZ.SetValue(arr[13]);
        //        cmbHangYeLX.SetValue(arr[14]);
        //        txtYSJ.SetText(arr[15]);
        //        cmbKaoHeFY.SetValue(arr[16]);
        //        txtKaiHuM.SetText(arr[17]);
        //        txtKaiHuYH.SetText(arr[18]);
        //        txtKaiHuZH.SetText(arr[19]);
        //        if (arr[20] == "1") {
        //            cbTuoShou.Checked = true;
        //        }
        //        this.txtHeTongH.SetText(arr[21]);
        //    }
        //}
    }
    //水表分配
    function OpenShuiBiaoXX(yh, type, laihanid) {
        openCenter("MulFenHuSBFP.aspx?YongHuH=" + yh + "&type=" + type + "&laihanid=" + laihanid, "600px", "400px");
    }
</script>
<div style="display:none">
    <dx:ASPxButton ID="BtnClear" ClientInstanceName="BtnClear" runat="server" OnClick="BtnClear_Click" Text="ASPxButton" UseSubmitBehavior="false"></dx:ASPxButton>
    <dx:ASPxButton ID="BtnSearch" ClientInstanceName="BtnSearch" OnClick="BtnSearch_Click" runat="server" Text="ASPxButton" UseSubmitBehavior="false"></dx:ASPxButton>
</div>
<dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField> 
<dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){CallbackCommonComplete(e.result);}"></dx:ASPxCallback>
<fieldset style="border: 1px solid cornflowerblue;">
    <legend><b>用户基本信息</b></legend>
    <table>
        <tr>
            <td>来函编号：</td>
            <td style="width:150px">
                <dx:ASPxTextBox ID="txtLaiHanBH" ClientInstanceName="txtLaiHanBH" ReadOnly="true" BackColor="#e3f2f9" runat="server" Width="90%">
                </dx:ASPxTextBox>
            </td>
            <td>用户号：</td>
            <td style="width:150px">
                <dx:ASPxTextBox ID="txtYYongHuH" ClientInstanceName="txtYYongHuH" runat="server" Width="90%">
                    <ClientSideEvents KeyPress="function(s,e){SelectYongHuH();}" />
                </dx:ASPxTextBox>
            </td>
        </tr>
    </table>
</fieldset>
<fieldset style="border: 1px solid cornflowerblue;">
    <legend><b>分户信息</b></legend>
    <dx:ASPxGridView ID="gvList" ClientInstanceName="gvList" runat="server" AutoGenerateColumns="False" KeyFieldName="S_YONGHUH" Theme="Aqua1" Width="100%">
        <Columns>
            <dx:GridViewDataTextColumn Width="45px">
                <DataItemTemplate>
                    <asp:LinkButton ID="lnbDel" runat="server" CausesValidation="false" Text="删除"
                        CommandArgument='<%#Eval("S_YONGHUH")%>' OnCommand="lnbDel_Command"></asp:LinkButton>
                </DataItemTemplate>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_YYONGHUH" Caption="原用户号" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="80">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="180">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_DIZHI" Caption="地址" Width="180">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_JUBIANH" Caption="局号" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_GONGSIBH" Caption="公司号" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_XINGZHENGQBH" Caption="行政区" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_YEWUY" Caption="业务员" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_LIANXIR" Caption="联系人" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_LIANXIDH" Caption="联系电话" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_LIANXIBM" Caption="联系部门" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_YOUBIAN" Caption="邮编" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_YONGSHUIXZ" Caption="用水性质" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_SHESHUIDXDM" Caption="行业类型" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="N_YSJ" Caption="用水价" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_KAOHEFY" Caption="考核复用" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_KAIHUHM" Caption="开户户名" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_KAIHUYH" Caption="开户银行" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_YINHANGZH" Caption="银行帐号" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_SHOUFEIFS" Caption="收费方式" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="S_HETONGH" Caption="合同号" Width="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M1" Caption="1月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M2" Caption="2月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M3" Caption="3月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M4" Caption="4月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M5" Caption="5月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M6" Caption="6月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M7" Caption="7月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M8" Caption="8月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M9" Caption="9月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M10" Caption="10月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M11" Caption="11月" Width="60">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="I_M12" Caption="12月" Width="60">
            </dx:GridViewDataTextColumn>
        </Columns>
        <Settings VerticalScrollableHeight="120" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
        <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
        <ClientSideEvents FocusedRowChanged="function(s,e){rowClick();}"/>
    </dx:ASPxGridView>
    <div style="height:5px"></div>
    <table runat="server" id="tabUserInfo" style="width: 90%; margin: auto;border:0px solid groove">
        <tr>
            <td style="text-align: right; min-width: 100pt">用户号：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYongHuH" ClientInstanceName="txtYongHuH" runat="server" Width="100%">
                     <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtYongHuM);}" LostFocus="function(s,e){YHH_LostFocus(s);}"/>
                </dx:ASPxTextBox>
            </td>
            <td style="text-align: right; min-width: 100pt">用户名：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYongHuM" ClientInstanceName="txtYongHuM" runat="server" Width="100%">
                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtDiZhi);}" />
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">用户地址：
            </td>
            <td colspan="3">
                <dx:ASPxTextBox ID="txtDiZhi" ClientInstanceName="txtDiZhi" runat="server" Width="100%">
                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtLianXiR);}" />
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">局号：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbJu" ClientInstanceName="cmbJu" runat="server" ValueType="System.String" Width="100%">
                    <ClientSideEvents SelectedIndexChanged="function(s,e){cmbGongSi.PerformCallback();}" />
                </dx:ASPxComboBox>
            </td>
            <td style="text-align: right">行政区：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbXingZhengQ" ClientInstanceName="cmbXingZhengQ" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">公司号：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbGongSi" ClientInstanceName="cmbGongSi" runat="server" ValueType="System.String" Width="100%" OnCallback="cmbGongSi_Callback"></dx:ASPxComboBox>
            </td>
            <td style="text-align: right">业务员：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbYWY" ClientInstanceName="cmbYWY" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">联系人：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtLianXiR" ClientInstanceName="txtLianXiR" runat="server" Width="100%">
                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtLianXiDH);}" />
                </dx:ASPxTextBox>
            </td>
            <td style="text-align: right">联系电话：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtLianXiDH" ClientInstanceName="txtLianXiDH" runat="server" Width="100%">
                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtLianXiBM);}" />
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">联系部门：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtLianXiBM" ClientInstanceName="txtLianXiBM" runat="server" Width="100%">
                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtYouBian);}" />
                </dx:ASPxTextBox>
            </td>
            <td style="text-align: right">邮编：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYouBian" ClientInstanceName="txtYouBian" runat="server" Width="100%">
                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtYSJ);}" />
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">用水性质：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbYongShuiXZ" ClientInstanceName="cmbYongShuiXZ" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
            <td style="text-align: right">行业类型：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbHangYeLX" ClientInstanceName="cmbHangYeLX" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">用水价：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYSJ" ClientInstanceName="txtYSJ" runat="server" Width="100%">
                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtKaiHuM);}" />
                </dx:ASPxTextBox>
            </td>
            <td style="text-align: right">考核复用：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbKaoHeFY" ClientInstanceName="cmbKaoHeFY" runat="server" ValueType="System.String" Width="100%"></dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">开户户名：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtKaiHuM" ClientInstanceName="txtKaiHuM" runat="server" Width="100%">
                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtKaiHuYH);}" />
                </dx:ASPxTextBox>
            </td>
            <td style="text-align: right">开户银行：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtKaiHuYH" ClientInstanceName="txtKaiHuYH" runat="server" Width="100%">
                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtKaiHuZH);}" />
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">银行账号：
            </td>
            <td colspan="2">
                <dx:ASPxTextBox ID="txtKaiHuZH" ClientInstanceName="txtKaiHuZH" runat="server" Width="100%">
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxCheckBox ID="cbTuoShou" ClientInstanceName="cbTuoShou" runat="server" Text="托收"></dx:ASPxCheckBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">合同号：
            </td>
            <td colspan="3">
                <dx:ASPxTextBox ID="txtHeTongH" ClientInstanceName="txtHeTongH" runat="server" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
    </table>
    <div style="height:5px"></div>
    <table style="width: 100%;" runat="server" id="tabJiHua">
        <tr>
            <td>
                <table style="width: 100%">
                    <tr style="text-align:center">
                        <td></td>
                        <td>1月</td>
                        <td>2月</td>
                        <td>3月</td>
                        <td>4月</td>
                        <td>5月</td>
                        <td>6月</td>
                        <td>7月</td>
                        <td>8月</td>
                        <td>9月</td>
                        <td>10月</td>
                        <td>11月</td>
                        <td>12月</td>
                        <td >全年</td>
                    </tr>
                    <tr runat="server" id="FenHuYJHTr">
                        <td style="text-align:right">
                            <dx:ASPxLabel ID="labYuanJH" runat="server" Text="原计划："></dx:ASPxLabel>
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH1" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH2" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH3" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH4" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH5" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH6" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH7" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH8" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH9" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH10" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH11" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH12" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                        <td style="text-align:left">
                            <dx:ASPxTextBox ID="txtFenHuYJH13" runat="server" ReadOnly = "true" Style="width: 100%" />
                        </td>
                    </tr>
                    <tr runat="server" id="FenHuHJJH">
                        <td style="text-align:right;min-width: 110px">分户后合计计划：
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH1" ClientInstanceName="txtHeJiJH1" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH2" ClientInstanceName="txtHeJiJH2" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH3" ClientInstanceName="txtHeJiJH3" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH4" ClientInstanceName="txtHeJiJH4" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH5" ClientInstanceName="txtHeJiJH5" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH6" ClientInstanceName="txtHeJiJH6" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH7" ClientInstanceName="txtHeJiJH7" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH8" ClientInstanceName="txtHeJiJH8" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH9" ClientInstanceName="txtHeJiJH9" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH10" ClientInstanceName="txtHeJiJH10" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH11" ClientInstanceName="txtHeJiJH11" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH12" ClientInstanceName="txtHeJiJH12" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtHeJiJH13" ClientInstanceName="txtHeJiJH13" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                    </tr>
                    <tr runat="server" id="QTFenHuHJJH">
                        <td style="text-align:right;min-width: 110px">已有分户合计计划：
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH1" ClientInstanceName="txtQTHeJiJH1" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH2" ClientInstanceName="txtQTHeJiJH2" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH3" ClientInstanceName="txtQTHeJiJH3" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH4" ClientInstanceName="txtQTHeJiJH4" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH5" ClientInstanceName="txtQTHeJiJH5" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH6" ClientInstanceName="txtQTHeJiJH6" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH7" ClientInstanceName="txtQTHeJiJH7" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH8" ClientInstanceName="txtQTHeJiJH8" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH9" ClientInstanceName="txtQTHeJiJH9" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH10" ClientInstanceName="txtQTHeJiJH10" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH11" ClientInstanceName="txtQTHeJiJH11" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH12" ClientInstanceName="txtQTHeJiJH12" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtQTHeJiJH13" ClientInstanceName="txtQTHeJiJH13" Text="0" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                        </td>
                    </tr>
                    <tr id="FenHuJH">
                        <td style="text-align:right;min-width: 110px">分户计划：
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH1" ClientInstanceName="txtFenHu1JH1" runat="server" Width="100%" ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH2);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH2" ClientInstanceName="txtFenHu1JH2" runat="server" Width="100%" ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH3);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH3" ClientInstanceName="txtFenHu1JH3" runat="server" Width="100%"  ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH4);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH4" ClientInstanceName="txtFenHu1JH4" runat="server" Width="100%"  ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH5);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH5" ClientInstanceName="txtFenHu1JH5" runat="server" Width="100%"  ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH6);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH6" ClientInstanceName="txtFenHu1JH6" runat="server" Width="100%"  ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH7);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH7" ClientInstanceName="txtFenHu1JH7" runat="server" Width="100%"  ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH8);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH8" ClientInstanceName="txtFenHu1JH8" runat="server" Width="100%"  ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH9);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH9" ClientInstanceName="txtFenHu1JH9" runat="server" Width="100%"  ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH10);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH10" ClientInstanceName="txtFenHu1JH10" runat="server" Width="100%"  ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH11);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH11" ClientInstanceName="txtFenHu1JH11" runat="server" Width="100%"  ClientSideEvents-KeyPress="function(s,e){OnkeyNext(txtFenHu1JH12);}" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH12" ClientInstanceName="txtFenHu1JH12" runat="server" Width="100%" ClientSideEvents-GotFocus="function(s,e){SetFocusC(s);}"  ClientSideEvents-TextChanged="function(s,e){FH1Change(s);}" />
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtFenHu1JH13" ReadOnly="true" Width="100%" ClientInstanceName="txtFenHu1JH13" runat="server" ></dx:ASPxTextBox>
                        </td>
                    </tr>
                    <tr runat="server" id="trFHBLF">
                        <td></td>
                        <td colspan="13">
                            <table>
                                <tr>
                                    <td>
                                        <dx:ASPxCheckBox ID="cbFHBLF" ClientInstanceName="cbFHBLF" runat="server"  Text="百立方米" Checked="false" >
                                        </dx:ASPxCheckBox>
                                    </td>
                                    <td style="padding-left:10px">
                                        <dx:ASPxButton ID="btnFHAllSame" ClientInstanceName="btnFHAllSame" runat="server" Text="全年相同" AutoPostBack="false" UseSubmitBehavior="false">
                                            <ClientSideEvents Click="function(s,e){FHAllSame();}" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table id="tabBtnAdd" style="width: 100%" runat="server">
        <tr>
            <td style="text-align:right">
                <dx:ASPxButton ID="BtnAddYH" UseSubmitBehavior="false" OnClick="BtnAddYH_Click" runat="server" Text="添加用户"></dx:ASPxButton>
            </td>
            <td style="text-align:right">
                <dx:ASPxButton ID="BtnAddSB" UseSubmitBehavior="false" OnClick="BtnAddSB_Click" runat="server" Text="水表分配" AutoPostBack="false"></dx:ASPxButton>
            </td>
        </tr>
    </table>
</fieldset> 